import requests
from config import RunConfig

def 物探项目统计汇总表查询(para):
    response = requests.get(
        url=RunConfig.url + "phy/workload/report/project/list/export?id=&type=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 竣工报表下载(para):
    response = requests.post(
        url=RunConfig.url + "/phy/completion/statement/export",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 物探工作量上报(para):
    response = requests.get(
        url=RunConfig.url + "phy/workload/report/project/info?id=&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探核定工作量统计(para):
    response = requests.get(
        url=RunConfig.url + "phy/workload/approved/export?approvedYear=1",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探核定工作量统计(para):
    response = requests.get(
        url=RunConfig.url + "phy/workload/approved?approvedYear=1",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探工作量上报(para):
    response = requests.post(
        url=RunConfig.url + "/phy/workload/report",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 物探项目统计汇总表查询(para):
    response = requests.get(
        url=RunConfig.url + "phy/workload/report/project/list?id=&type=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探工作量上报查询(para):
    response = requests.get(
        url=RunConfig.url + "phy/workload/report/list?implementType=&projectName=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 竣工报表详情(para):
    response = requests.get(
        url=RunConfig.url + "phy/completion/statement/info?projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 竣工报表详情下载(para):
    response = requests.get(
        url=RunConfig.url + "phy/completion/statement/info/export?projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 竣工报表(para):
    response = requests.post(
        url=RunConfig.url + "/phy/completion/statement?page=1&perPage=10",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response
